<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<form action="index.php?top=page&option=com_frclub" method="post" name="adminForm" id="adminForm" >

    <!-- LEFT -->
     <?php echo $this->loadTemplate('search','default') ?>
     <!-- END LEFT -->
     
     <!-- CONTENT -->
    <div id="jm-content">
        <div class="cc title">
            <div class="id"><?php echo $this->info_ocba->OCBA_CODE; ?></div>
            <div class="cc-title">
                <p class="top"><?php echo $this->info_ocba->OCBA_KANA; ?></p>
                <p class="bot"><?php echo $this->info_ocba->OCBA_NAME; ?><span class="float-right">【<?php echo $this->info_ocba->OCBA_SHOR; ?>】</span></p>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="menu-cc">
            <ul id="nav">
            <?php 
                foreach(bgData::getMenuDetailClub() as $key=>$item){
                    $acctive = 'normal';
                    if(JRequest::getVar('task') == $key){
                        $acctive = 'current';
                    }
             ?>
                <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frclub&task=<?php echo $key; ?>&id=<?php echo $this->info_ocba->OCBA_CODE; ?>"><?php echo $item; ?></a></li>
              <?php } ?>
                
            </ul>
        </div>
        
        <div id="a">
            <h3 class="h_title">センター情報<span style="float: right;"><!--<button href="" id="icon">アイコン説明</button>--></span></h3>
                <div class="">
                    <?php if($this->rows != null){ ?>
                    <div class="cc">
                        <h2>
                            <span class="id-cc"><?php echo $this->rows->OCBA_CODE; ?></span>
                           	<?php echo $this->rows->OCBA_NAME; ?>
                            <span class="float-right">
                            <button href="index.php?top=page&option=com_frcenter&task=detail&id=<?php echo $this->rows->OCBA_CODE; ?>" style="margin-top: 3px;">海洋センター情報へ</button>
                            </span>
                        </h2>
                        <table style="width: 100%;" border=0>
                            <tbody>
                                <tr>
                                    <td style="width: 100px;vertical-align:top"><?php if($this->rows->OCBA_POST!=null) echo '〒'.$this->rows->OCBA_POST; ?></td>
                                    <td style="width: 340px;line-height: 17px;" colspan="2"><?php echo $this->rows->OCBA_ADD1; echo "<br/>".$this->rows->OCBA_ADD2;?> </td>
                                    <td style="width: 180px;">
                                        <?php
                                            if($this->rows->POOL_POHK == 1) {
                                                echo '<img src="components/com_frcenter/public/images/pett_hot.gif" class="icon">';
                                            }
                                            elseif($this->rows->POOL_POHK == 2) {
                                                echo '<img src="components/com_frcenter/public/images/pett_heat.gif" class="icon">';
                                            }
                                            elseif(isset($this->rows->POOL_OCBA_CODE)){
                                                echo '<img src="components/com_frcenter/public/images/pool.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if(isset($this->rows->GYMT_OCBA_CODE)){
                                                echo '<img src="components/com_frcenter/public/images/pett_phys.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->DOCK_DOCM_CODE == 2){
                                                echo '<img src="components/com_frcenter/public/images/pett_mini.gif" class="icon"/>';
                                            }
                                            elseif(isset($this->rows->DOCK_OCBA_CODE)){
                                                echo '<img src="components/com_frcenter/public/images/pett_boat.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_PUTF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_putf.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_LARF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_larf.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_CANF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_canf.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_YACF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_yacf.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_SCHF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_schf.gif" class="icon"/>';
                                            }
                                        ?>
                                        <?php
                                            if($this->rows->OCBA_OUTF == 1){
                                                echo '<img src="components/com_frcenter/public/images/ocba_outf.gif" class="icon"/>';
                                            }
                                        ?>
                                    </td>
                                </tr>
                                <!--
                                <tr>
                                    <td style="width: 20%;"></td>
                                    <td colspan="3"><?php echo $this->rows->OCBA_ADD2; ?></td>
                                    
                                </tr>
                                -->
                                <tr>
                                    <td style="width: 20%;"></td>
                                    <td style="width: 25%;"><?php if(!empty($this->rows->OCBA_TEL)){ ?>Tel：<?php echo $this->rows->OCBA_TEL; } ?></td>
                                    <td style="width: 25%;"><?php if(!empty($this->rows->OCBA_FAX)){ ?>Fax：<?php echo $this->rows->OCBA_FAX; } ?></td>
                                    <td style="width: 30%;"></td>
                                </tr>
                            </tbody>
                        </table>
                        <hr/>
                        <table style="width: 100%;" border=0>
                            <tbody>
                                <tr style="font-weight: bold;"><td colspan="2"><?php echo $this->rows->OCBA_LNAME; ?></td></tr>
                                <tr>
                                    <td style="width: 150px;vertical-align:top"><?php if($this->rows->OCBA_LPOST!=null) echo '〒'.$this->rows->OCBA_LPOST; ?></td>
                                    <td style="width: 340px;line-height: 17px;"colspan="2"><?php echo $this->rows->OCBA_LADD1;echo "<br/>".$this->rows->OCBA_LADD2; ?>  </td>
                                    <td style="width: 180px;">
                                    </td>
                                </tr>
                                <!--
                                <tr>
                                    <td style="width: 20%;"></td>
                                    <td colspan="3"><?php // echo $this->rows->OCBA_LADD2;  ?></td>                                    
                                </tr>
                                -->
                                <tr>
                                    <td style="width: 20%;"></td>
                                    <td style="width: 25%;">Tel：<label><?php if(!empty($this->rows->OCBA_LTEL)){ ?><?php echo $this->rows->OCBA_LTEL; } ?></label></td>
                                    <td style="width: 25%;">Fax：<label><?php if(!empty($this->rows->OCBA_LFAX)){ ?><?php echo $this->rows->OCBA_LFAX; } ?></label></td>
                                    <td style="width: 30%;"></td>
                                </tr>
                            </tbody>
                        </table>
                        
                    </div>
                    <?php }else{ ?>
                    <div>
                        <p align="center">データは見つかりませんでした</p>
                    </div>
                <?php } ?>
                    
                </div>
            </div>
            <input type="hidden" name="task" value=""/>
                        <input type="hidden" name="boxchecked" value="0"/> 
     </div>
                                
 </form>
 <!-- END CONTENT -->           